 <table width="100%" border="0">
   <tr>
     <td style="border-bottom:dotted 1px #333;"> Main menu </td>
   </tr>
 </table>
 
  <table width="100%" border="0">
  	<tr>
      <td width="50%"><strong>เนื้อหา</strong></td>
      <td width="50%"><strong>แบบทดสอบ</strong></td>
  	</tr>
    
   	<tr>
     <td>
   		<ul class="tmo_list">
   		 <li> 
         	<a href="index.php?menu=grammar&gramFile=content&gramID=1" style="color: #666; text-decoration: none;">
            การเปรียบเทียบ (Comparison) 
            </a>
         </li>
         <li>
         	<a href="index.php?menu=grammar&gramFile=content&gramID=2" style="color: #666; text-decoration: none;">
         	If clause
            </a>
         </li>
         <li>
         	<a href="index.php?menu=grammar&gramFile=content&gramID=3" style="color: #666; text-decoration: none;">
         	สำนวนที่ควรทราบ
            </a>
         </li>  
          <li>
         	<a href="index.php?menu=grammar&gramFile=content&gramID=4" style="color: #666; text-decoration: none;">
         	การใช้ Verb to be
            </a>
         </li>  
          <li>
         	<a href="index.php?menu=grammar&gramFile=content&gramID=5" style="color: #666; text-decoration: none;">
         	Gerund and Infinitive
            </a>
         </li>  
          <li>
         	<a href="index.php?menu=grammar&gramFile=content&gramID=6" style="color: #666; text-decoration: none;">
         	Connected Statements
            </a>
         </li>               
 		</ul>
     </td>
     <td valign="top">
   		<ul class="tmo_list">
   		 <? 
			 $sql_grm = "select * from tb_question where status=1 and  gID=1 order by qID";
			 $rs_grm = mysql_query($sql_grm);
			 
			 while ($data_grm = mysql_fetch_object($rs_grm)) {
			 ?>
       	<li>
         	<a href="index.php?menu=grammar&gramFile=<?=$data_grm->qFile?>&quiz_q=<?=$data_grm->qID?>" style="color: #666; text-decoration: none;">
         	แบบฝึกหัดเรื่อง : <?=$data_grm->qName?>
            </a>
         </li>
       <? } ?>          
 		</ul>
     </td>
   </tr>
 </table>